
package com.gustozzi.distribucion.dao.util;

public class DataAccessExceptions extends Exception
{

    private static final long serialVersionUID = 1L;
    private static String msgError = "Se  ha producido un error: ";

    public DataAccessExceptions(String string)
    {
        super(msgError + " : " + string);
    }

    public DataAccessExceptions()
    {
        super(msgError);
    }

    public DataAccessExceptions(Throwable cause)
    {
        super(msgError + " : " + cause.getMessage());
    }

    public DataAccessExceptions(DataAccessExceptions e)
    {
        super(e);
    }

    public String toString()
    {
        return getMessage();
    }

    public String getMessage()
    {
        return super.getMessage();
    }
}
